﻿using CommonLibrary.Classes.ImageCapture;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Imaging;

namespace CommonLibraryTest
{
    
    
    /// <summary>
    ///This is a test class for ScreenCaptureTest and is intended
    ///to contain all ScreenCaptureTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ScreenCaptureTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ScreenCapture Constructor
        ///</summary>
        [TestMethod()]
        public void ScreenCaptureConstructorTest()
        {
            ScreenCapture target = new ScreenCapture();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CaptureImage
        ///</summary>
        [TestMethod()]
        public void CaptureImageTest()
        {
            ScreenCapture target = new ScreenCapture(); // TODO: Initialize to an appropriate value
            Screen capture = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.CaptureImage(capture);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ScreenBitMap
        ///</summary>
        [TestMethod()]
        public void ScreenBitMapTest()
        {
            ScreenCapture target = new ScreenCapture(); // TODO: Initialize to an appropriate value
            Bitmap expected = null; // TODO: Initialize to an appropriate value
            Bitmap actual;
            //target.ScreenBitMap = expected;
            actual = target.ScreenBitMap;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ScreenImage
        ///</summary>
        [TestMethod()]
        public void ScreenImageTest()
        {
            ScreenCapture target = new ScreenCapture(); // TODO: Initialize to an appropriate value
            Graphics expected = null; // TODO: Initialize to an appropriate value
            Graphics actual;
            //target.ScreenImage = expected;
            actual = target.ScreenImage;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ScreenImageFormat
        ///</summary>
        [TestMethod()]
        public void ScreenImageFormatTest()
        {
            ScreenCapture target = new ScreenCapture(); // TODO: Initialize to an appropriate value
            ImageFormat expected = null; // TODO: Initialize to an appropriate value
            ImageFormat actual;
            //target.ScreenImageFormat = expected;
            actual = target.ScreenImageFormat;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
